package cn.fay.chapter12;
class DemoBase{
	public void	f() throws Exception{
		System.out.println("Base f()");
	}
}
public class Demo1 extends DemoBase {
	
	public void f(){System.out.println("Demo1 f()");}
	public static void main(String[] args) {
		DemoBase base=new Demo1();
		try {
			base.f();
		} catch (Exception e) {
			e.printStackTrace();
		}
		new Demo1().f();
	}
}
